﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 练习_方法定义
{
    class Compute
    {
        public double Add(double a, double b)
        {
            return a + b;

        }

        public double Miuns(double a, double b)
        {
            return a - b;

        }

        public double Multiply(double a, double b)
        {
            return a * b;


        }
               
        public double Divide(double a,double b)
        {
            return a / b;

        }

    }
}
